#include <iostream>

int addsum(int sum)
{
    int result = 0;
    while(sum--)
    {
        result += sum;
    }

    return result;
}

int main()
{
    int sum = 100;
    int res = addsum(sum);
    std::cout << res << std::endl;
    return 0;
}

